import Vue from 'vue'
import VueRouter from 'vue-router'
import Layout from '@/views/LayOut'
import LoginMy from '@/views/LoginMy'
import HomeMy from '@/views/HomeMy'
import ProcessOrder from '@/views/ProcessOrder'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/login',
      component: LoginMy
    },

    {
      path: '/',
      component: Layout,
      children: [
        {
          path: '/home',
          component: HomeMy
        },
        {
          path: '/pocessorder',
          component: ProcessOrder

        }

      ]

    }
  ]
})

export default router
